package com.finger.forest.http;

import android.os.Environment;

/**
 * 和网络请求相关的常量
 */
public interface Constant {
    /**
     * 应用文件存放目录
     */
    String APP_DIR_NAME = "yiluan";
    // 图片目录
    String IMAGE_DIR = Environment.getExternalStorageDirectory() + "/"
            + APP_DIR_NAME + "/image/";
    // 视频目录
    String VIDEO_DIR = Environment.getExternalStorageDirectory() + "/"
            + APP_DIR_NAME + "/video/";
    // 日志目录
    String LOG_DIR = Environment.getExternalStorageDirectory() + "/"
            + APP_DIR_NAME + "/log/";
    // 文件目录
    String FILE_DIR = Environment.getExternalStorageDirectory() + "/"
            + APP_DIR_NAME + "/file/";

    String BASE_URL = "http//www.baidu.com";

    int success = 200;// 接口调用成功
    int serverError = 400;// 调取数据出错
    int unknownError = 500;// 接口调用出错,服务器代码错误，500
    int tokenError = 300;// token失效
    int fourError = 2001;// 400错误
    int othereError = 2002;// 其他未知的错误，能拿到数据，服务器给的errorcode
    int noNet = 2001;// 无网络，隐藏loading


    String TOKEN = "user:token";
    String PHONE = "user:phone";
    String HEAD_URL = "user:head";
    String UID = "user:uid";
    String CITY = "city";
    String REAL_NAME = "realName";
    String HX_PASSWORD = "hxPassword";
    String HX_USERNAME = "hxUserName";
}
